/* 
 * File:   UsersData.cpp
 * Author: Neo Siong Wei
 * 
 * Created on February 7, 2014, 6:14 PM
 */

#include "UsersData.h"

UsersData::UsersData() {
}

UsersData::UsersData(string t_ID, string t_Username, string t_Password, bool t_Status){
    this->ID = t_ID;
    this->username = t_Username;
    this->password = t_Password;
    this->status_Locked = t_Status;
    
    char *ptr = &t_ID[0];
    
    this->role = *ptr;
}

UsersData::~UsersData() {
}

string UsersData::getUsername(){
    return username;
}
string UsersData::getPassword(){
    return password;
}
string UsersData::getID(){
    return ID;
}

char UsersData::getRole(){
    return role;
}

bool UsersData::getStatus(){
    return status_Locked;
}

void UsersData::setUsername(string uName){
    this->username = uName;
}

void UsersData::setStatusLocked(){
    this->status_Locked = true;
}